public class test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.addLast(5);
        myLinkedList.addLast(3);
        myLinkedList.addLast(3);
        System.out.println(myLinkedList);

        myLinkedList.addFirst(99);
        System.out.println(myLinkedList);

        myLinkedList.addIndex(2,88);
        System.out.println(myLinkedList);

        myLinkedList.removeLast();
        System.out.println(myLinkedList);

        myLinkedList.removeFirst();
        System.out.println(myLinkedList);

        myLinkedList.removeIndex(1);
        System.out.println(myLinkedList);

        myLinkedList.removeKey(3);
        System.out.println(myLinkedList);

        System.out.println(myLinkedList.contains(5));

        System.out.println(myLinkedList.isEmpty());
        myLinkedList.clear();
        System.out.println(myLinkedList.isEmpty());
    }
}
